projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a82ca7b
)
fw_env: add redundant env support for MTD_ABSENT
author
Oliver Metz
<
[email protected]
>
Thu, 29 Aug 2013 22:56:01 +0000
(
00:56
+0200)
committer
Tom Rini
<
[email protected]
>
Fri, 6 Sep 2013 17:09:08 +0000
(13:09 -0400)
Signed-off-by: Oliver Metz <
[email protected]
>
Tested-by: Luka Perkov <
[email protected]
>
tools/env/fw_env.c
patch
|
blob
|
history
diff --git
a/tools/env/fw_env.c
b/tools/env/fw_env.c
index 44607b164a7024501360d206b90b1b6d419e6a29..65be5f3fb07e3d202c4f9b960c8dae81b1da0c5c 100644
(file)
--- a/
tools/env/fw_env.c
+++ b/
tools/env/fw_env.c
@@
-1136,6
+1136,9
@@
int fw_env_open(void)
} else if (DEVTYPE(dev_current) == MTD_UBIVOLUME &&
DEVTYPE(!dev_current) == MTD_UBIVOLUME) {
environment.flag_scheme = FLAG_INCREMENTAL;
+ } else if (DEVTYPE(dev_current) == MTD_ABSENT &&
+ DEVTYPE(!dev_current) == MTD_ABSENT) {
+ environment.flag_scheme = FLAG_INCREMENTAL;
} else {
fprintf (stderr, "Incompatible flash types!\n");
return -1;